<template>
  <div class="detail">
    <van-nav-bar
      title="详情"
      left-text="返回"
      right-text="***"
      @click-left="onClickLeft"
    />
    <div class="list">
      <van-sidebar v-for="(item, index) in taglist" :key="index">
        <van-sidebar-item :title="item.name" />
      </van-sidebar>
    </div>
  </div>
</template>

<script>
import { shop_shopinfo } from "../utils/api";
export default {
  data() {
    return {
      taglist: [],
    };
  },
  mounted() {
    shop_shopinfo({ id: this.$route.params.id }).then((res) => {
      // console.log(res.data);
      this.taglist = res.data.shopinfo.taglist;
    });
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>

<style>
</style>